import { Statement, STATEMENT_KIND, STATEMENT_TAG } from '../statement';

export class Break extends Statement {
  static isBreak(object: any): object is Break {
    return (
      Statement.isStatement(object) && object.$kind === STATEMENT_KIND.BREAK
    );
  }
  $kind: STATEMENT_KIND.BREAK = STATEMENT_KIND.BREAK;
  $tag: STATEMENT_TAG.CONTROL = STATEMENT_TAG.CONTROL;

  isBreak(object: any): object is Break {
    return (
      Statement.isStatement(object) && object.$kind === STATEMENT_KIND.BREAK
    );
  }
}
